package com.ruoyi.coffee.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author dxj
 * @Description 购物车dto
 * @date 2025/2/11 15:25
 */
@Data
@ApiModel(description = "购物车Dto")
public class ShopCartDto {
    /**
     * id
     */
    @ApiModelProperty(value = "id", required = false, example = "1233444")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true, example = "1233444")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id", required = true, example = "1233444")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;

    /**
     * 商品数量
     */
    @ApiModelProperty(value = "商品数量", required = true, example = "1")
    private Long quantity;

    /**
     * 咖啡类型
     */
    @ApiModelProperty(value = "咖啡类型", required = true, example = "拿铁")
    private String coffeeType;

    /**
     * 温度
     */
    @ApiModelProperty(value = "温度", required = true, example = "温度/属性")
    private String temperature;
}
